package com.ev.aslReport.vo;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author: π
 * @date 2022/7/25 13:57
 * @described:
 */
@Data
public class ReportEightVo implements Serializable {

    /**
     * 客户名称
     */
    private String     clientName;

    /**
     * 一季度金额
     */
    private BigDecimal oneAmount;
    /**
     * 二季度金额
     */
    private BigDecimal twoAmount;
    /**
     * 三季度金额
     */
    private BigDecimal threeAmount;
    /**
     * 四季度金额
     */
    private BigDecimal fourAmount;

    /**
     * 金额
     */
    private BigDecimal amount;

    /**
     * 占比
     */
    private String     proportion;

    private BigDecimal[] amountList;

    //排序字段
    private Integer	frecords;

    public void createAmountList(BigDecimal one, BigDecimal two,BigDecimal three,BigDecimal four){
        this.setAmountList(new BigDecimal[]{one,two,three,four});
    }


    public void create1(){
        this.setClientName("客户一江苏精亏同有限公司好好");
        this.setOneAmount(new BigDecimal("0"));
        this.setTwoAmount(new BigDecimal("30"));
        this.setThreeAmount(new BigDecimal("20"));
        this.setFourAmount(new BigDecimal("50"));
        this.setAmount(new BigDecimal("100"));
        this.setProportion("5%");
        this.setAmountList(new BigDecimal[]{new BigDecimal("0"),new BigDecimal("30"),new BigDecimal("20"),new BigDecimal("50")});
    }



}
